package com.member.member.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//name为服务提供者向注册中心注册的实例名
@FeignClient(name = "user-server" ,path = "user",fallback = UserFeignClientFallback.class)
public interface HelloFeignService {
    //地址为服务提供者对外暴露的地址
    @RequestMapping(value = "/test")
    List<String> test();

    //地址为服务提供者对外暴露的地址
    @RequestMapping(value = "/test1")
    List<String> test1();
}
